package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("soul_test_report")
public class Report implements Serializable {
    private ObjectId id;
    private Long reportId;
    private String conclusion;
    private String cover;
    private List<Dimension> dimensions;
    private List<Long> similarYouIds;
    private Long created;
    public Integer getRemarkId(Integer outgoing,Integer judge,Integer abstr,Integer rational){
        //选项的总值为0-400,星座Id为1-12,所以400/11=37.所以由下面这个公式计算对应的星座Id
        Integer remarkId=(outgoing+judge+abstr+rational)/37+1;
        return remarkId;
    }


}
